// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
  padding-bottom: 0;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse
  > div
  > .el-submenu
  > .el-submenu__title
  .el-submenu__icon-arrow {
  display: none;
}

.el-dropdown .el-dropdown-link{
  color: var(--el-color-primary) !important;
}

.el-table__header-wrapper .el-table__header tr th {
  background: linear-gradient(to bottom, #FDFDFD, #F7F7F7) !important;
  // background-color: #F1F6FE !important;
}

.el-table__header-wrapper {
  padding-bottom: 2px;
}

.el-table__header-wrapper th.el-table__cell {
  box-shadow: 0 2px 0 0 rgba($color: #F1F6FE, $alpha: 0.3);
}

.el-dialog__header {
  height: 48px;
  padding: 0 !important;
  margin-right: 0;
  margin-bottom: 0;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  // box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba($color: #000000, $alpha: 0.08);

  .el-dialog__headerbtn {
    position: relative;
    height: 25px;
    width: 25px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.el-dialog__title {
  font-size: 16px !important;
}

.el-dialog__body {
  padding-bottom: 0;
  padding-top: 20px !important;
  box-sizing: border-box;
}

.dialog-form {
  .el-form-item__label, .el-tag__content, .el-input__inner, .el-textarea__inner {
    color: rgb(75, 75, 75) !important;
    font-weight: normal !important;
  }

  .el-select, .el-input-number, .el-date-editor, .el-autocomplete {
    width: 100%;
  }

  .el-form-item__content {
    word-break: break-all;
  }
}

// 去掉el-tabs组件的下划线
.el-tabs__nav-wrap::after {
  display: none;
}

// table tooltip
.table-tooltip .el-popper {
  max-width: 50%;
  word-break: break-all;
}

.el-button.is-link:focus,
.el-button.is-link:hover {
	color: $--color-primary;
}

// .el-loading-mask {
//   background-color: transparent;
// }

.department-tree {
  .el-tree {
    --el-tree-node-content-height: auto;
  }

  .el-tree-node {
    white-space: pre-line;
  }

  .el-tree-node__content {
    align-items: baseline;
  }

  .el-tree-node__expand-icon {
    padding: 8px 6px;
  }

  .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
    background-color: #409EFF;

    .el-tree-node__label {
      color: #fff !important;
    }
  }

  .disabled-label .el-tree-node__label {
    color: #a8abb2;
    cursor: not-allowed;
  }

  .active-label .el-tree-node__label {
    color: #606266;
    cursor: pointer;
  }
}

.el-scrollbar__bar.is-horizontal {
  height: 10px;
  left: 2px;
}

// el-table横向滚动条固定在可视区域底部
.fixed-scrollbar .el-table-horizontal-scrollbar {
  bottom: 50px !important;
}